<%-- 
    Document   : newpost
    Created on : May 21, 2008, 6:28:25 PM
    Author     : Yasith
--%>
<%@ include file="/WEB-INF/jspf/authcheck.jspf"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <%
            request.setAttribute("pageTitle", "New Post");
    %>
    
    <%@ include file="/WEB-INF/jspf/header.jspf"%>
    
    <!-- TinyMCE -->
    <script type="text/javascript" src="scripts/EditorScripts/tiny_mce.js"></script>
    <script type="text/javascript">
        tinyMCE.init({
            mode : "textareas",
            theme : "advanced"
        });
    </script>
    <!-- /TinyMCE -->
    <div class="portion"> 
    <form method="post" action="newpost.do">
    <input type="text" name="title" value="post title here" style="width: 80%" />
        
        <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
        <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
                Please type your post over here...
        </textarea>
        
        <br />
        <input type="submit" name="save" value="Submit" />
        <input type="reset" name="reset" value="Reset" />
    </form>
</div>
    <%@ include file="/WEB-INF/jspf/footer.jspf"%>
</html>
